package com.wlstudy.leyou.common.exception;

import com.wlstudy.leyou.common.enums.ExceptionEnum;

/**
 * 通用异常
 * 
 * @author wl 
 */
public class LyException extends RuntimeException{
    private ExceptionEnum exceptionEnum;

    public LyException(ExceptionEnum exceptionEnum) {
        this.exceptionEnum = exceptionEnum;
    }

    public ExceptionEnum getExceptionEnum() {
        return exceptionEnum;
    }

    public void setExceptionEnum(ExceptionEnum exceptionEnum) {
        this.exceptionEnum = exceptionEnum;
    }
}
